package com.sciencep.pro.core.dao;

import com.sciencep.pro.core.domain.entity.CalendarInfo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author Sciencep
 */
public interface CalendarInfoMapper extends BaseMapper<CalendarInfo> {

    void deleteByYear(Integer year);

    int insertCalendarInfos(@Param("calendarInfoList") List<CalendarInfo> calendarInfoList);

    boolean updateCalendarInfoById(@Param("calendarInfos") List<CalendarInfo> calendarInfos);
}
